package edu.zut.hb.software.train.QRcodeManager.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.QRcode.dao.QRcodeDao;
import edu.zut.hb.software.train.QRcode.domain.QRcode;
import edu.zut.hb.software.train.QRcodeManager.service.QRcodeManager;





@Service("QRcodeManager")
public class QRcodeManagerImpl extends GenericManagerImpl<QRcode, Long> implements QRcodeManager {

	
	QRcodeDao qrcodeDao;
	
	@Autowired
	public void setPaymentDao(QRcodeDao qrcodeDao) {
		this.qrcodeDao = qrcodeDao;
		this.dao = this.qrcodeDao;
	}

	@Override
	public List<QRcode> getAll() {
		List<QRcode> all = this.qrcodeDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<QRcode> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}